<h1>Listing invoice_details</h1>

<table>
  <thead>
    <tr>
      <th>Invoice</th>
      <th>Invoice item type</th>
      <th>Fee</th>
      <th>Discount</th>
      <th>Created at</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @invoice_details.each do |invoice_detail| %>
      <tr>
        <td><%= invoice_detail.invoice_id %></td>
        <td><%= invoice_detail.invoice_item_type.label %></td>
        <td><%= invoice_detail.fee %></td>
        <td><%= invoice_detail.discount %></td>
        <td><%= invoice_detail.created_at %></td>
        <td><%= link_to 'Show', invoice_detail %></td>
        <td><%= link_to 'Edit', edit_invoice_detail_path(invoice_detail) %></td>
        <td><%= link_to 'Destroy', invoice_detail, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Invoice detail', new_invoice_detail_path %>
